package com.qtu.product_service.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ElasticSearchService {
    /**
     * 查询数据库所有商品并存入 ElasticSearch
     * @return
     */
    boolean saveAll() throws IOException;

    /**
     * 搜索
     * @return
     */
    List<Map<String, Object>> search(String key) throws IOException;
}
